package com.hz.monitoring.module.hardware.socket.ifwl_gprs_v2.util;

public class InstructionCode {


    //指令开头
    public static final String INSTRUCTION_BEGINNING ="FE000B03E801";
    //指令结尾
    public static final String INSTRUCTION_END= "EF";

    //心跳
    public static final String FE= "FE";

    //等待上线时间
    public static final String WAITING_TIME="0064";
    //等待应答时间
    public static final String WAITING_REPLY_TIME="000A";

    //00  是否发送新的配置（当平台配置发生变化时，该值置1，否则置0；当置1时，
    public static final String NEW_CONFIGURATION0="00";
    public static final String NEW_CONFIGURATION1="01";

    //数据区填充 5个字节数的0
    public static final String DATA_FILLING5="0000000000";
    //数据区填充 1个字节数的0
    public static final String DATA_FILLING1="00";


    //是否数据尾包 01 最后一包
    public static final String WHETHER_DATA_TAIL_PACKET1="01";
    //是否数据尾包 00还有
    public static final String WHETHER_DATA_TAIL_PACKET0="00";

    //子指令个数
    public static final String CHILD_INSTRUCTION_QUANTITY1="01";
    public static final String CHILD_INSTRUCTION_QUANTITY2="02";

    //振弦传感器00  ,485数字类传感器 01
    public static final String VIBRATING_SENSOR_TYPE="00";
    public static final String DIGITAL_SENSOR_TYPE="01";

    //指令长度
    public static final String INSTRUCTION_LENGTH="05";

    //指令清单：
    public static final String NODE_WAKES="8A00";//:节点唤醒，发送节点自身信息
    public static final String PLATFORM_DELIVERS_SYNCHRONIZATION_TIME="0A01";//:平台下发同步时间指令
    public static final String NODE_SYNCHRONIZATION_TIME_REPLY="8302";//:节点对时间同步指令的应答
    public static final String PLATFORM_DELIVERS_COLLECT_INSTRUCTION="0306";//:平台下发采集指令
    public static final String NODE_RECEIVE_COLLECT_INSTRUCTION="8307";//:节点接收到一条采集指令
    public static final String NODE_RECEIVE_ALL_COLLECT_INSTRUCTION="8306";//:节点接收到全部采集指令
    public static final String PLATFORM_RECEIVE_COLLECT_DATA="8601";//:节点上传采集数据
    public static final String PLATFORM_RECEIVE_COLLECT_DATA_REPLY="0601";//:平台收到节点的上传数据后进行应答
    public static final String NODE_DORMANCY="8A02";//:节点进入休眠

    //消息ID
    public static final String MID="0000";


}
